package com.ruoyi.yuce.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.yuce.mapper.FengjifaultcodeMapper;
import com.ruoyi.yuce.domain.Fengjifaultcode;
import com.ruoyi.yuce.service.IFengjifaultcodeService;

/**
 * 风机错误代码Service业务层处理
 * 
 * @author xinhui
 * @date 2023-01-17
 */
@Service
public class FengjifaultcodeServiceImpl implements IFengjifaultcodeService 
{
    @Autowired
    private FengjifaultcodeMapper fengjifaultcodeMapper;

    /**
     * 查询风机错误代码
     * 
     * @param id 风机错误代码主键
     * @return 风机错误代码
     */
    @Override
    public Fengjifaultcode selectFengjifaultcodeById(Integer id)
    {
        return fengjifaultcodeMapper.selectFengjifaultcodeById(id);
    }

    /**
     * 查询风机错误代码列表
     * 
     * @param fengjifaultcode 风机错误代码
     * @return 风机错误代码
     */
    @Override
    public List<Fengjifaultcode> selectFengjifaultcodeList(Fengjifaultcode fengjifaultcode)
    {
        return fengjifaultcodeMapper.selectFengjifaultcodeList(fengjifaultcode);
    }

    /**
     * 新增风机错误代码
     * 
     * @param fengjifaultcode 风机错误代码
     * @return 结果
     */
    @Override
    public int insertFengjifaultcode(Fengjifaultcode fengjifaultcode)
    {
        return fengjifaultcodeMapper.insertFengjifaultcode(fengjifaultcode);
    }

    /**
     * 修改风机错误代码
     * 
     * @param fengjifaultcode 风机错误代码
     * @return 结果
     */
    @Override
    public int updateFengjifaultcode(Fengjifaultcode fengjifaultcode)
    {
        return fengjifaultcodeMapper.updateFengjifaultcode(fengjifaultcode);
    }

    /**
     * 批量删除风机错误代码
     * 
     * @param ids 需要删除的风机错误代码主键
     * @return 结果
     */
    @Override
    public int deleteFengjifaultcodeByIds(Integer[] ids)
    {
        return fengjifaultcodeMapper.deleteFengjifaultcodeByIds(ids);
    }

    /**
     * 删除风机错误代码信息
     * 
     * @param id 风机错误代码主键
     * @return 结果
     */
    @Override
    public int deleteFengjifaultcodeById(Integer id)
    {
        return fengjifaultcodeMapper.deleteFengjifaultcodeById(id);
    }
}
